Blender Documentation Volume II - Reference Guide: Last modified March 29 2004 S68 | ||
---|---|---|
<<< Previous | Python API Reference | Next >>> |
The Blender.Object submodule
This module provides access to the Object Data in Blender.
Example:
import Blender scene = Blencer.Scene.getCurrent () # get the current scene ob = Blender.Object.New ('Camera') # make camera object cam = Blender.Camera.New ('ortho') # make ortho camera data object ob.link (cam) # link camera data with the object scene.link (ob) # link the object into the scene ob.setLocation (0.0, -5.0, 1.0) # position the object in the scene Blender.Redraw() # redraw the scene to show the updates. |
Function Summary | ||
á | Get(name) Get the Object from Blender. | |
á | GetSelected() Get the selected objects from Blender. | |
á | New(type, name) Creates a new Object. |
Get(name=None) Get the Object from Blender.
|
GetSelected() Get the selected objects from Blender. If no objects are selected, an empty list will be returned.
|
New(type, name='type') Creates a new Object.
|
<<< Previous | Home | Next >>> |
The Scene object | Up | Class Object |